package com.woniuxy.meal.exception.userCartException;

public enum UserCartExceptionCode {


    USER_CART_NOT_EXIST(5010,"该条购物车信息不存在，操作失败"),
    STORE_STATE_ERROR(5011,"商铺不存在，提交购物车失败"),
    STORE_STATE_CLOSE(5012,"当前商铺未营业哦"),
    NOT_IN_DELIVERY_TIME(5013,"不在配送时间范围内，提交购物车失败"),
    FOOD_NOT_EXIST(5014,"购物车中有失效商品"),
    FOOD_NOT_MATCH_STORE(5015,"只能提交同一个商铺中的商品"),
    STORE_NOT_DISPATCH_SERVER(5016,"该商家没有配送服务哦"),
    FOOD_NOT_MATCH_INITIATE(5017,"未达到起送价不能配送");

    Integer code;
    String message;

    UserCartExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
